package ywpt.service.config;

import java.util.List;

import org.hibernate.criterion.DetachedCriteria;

import ywpt.model.BankInfo;

public interface BankInfoService {

	public abstract BankInfo getBankInfoById(Long id);

	public abstract int getBankInfoCountByCriteria(DetachedCriteria query);

	public abstract List<BankInfo> getBankInfos(
			DetachedCriteria query, int pageSize, int startIndex);

	public abstract String createBankInfoCode();

	public abstract void saveBankInfo(BankInfo bankInfo);

	public abstract void updatBankInfo(BankInfo bankInfo);

	public abstract void removeBankInfo(Long id);

	public abstract List<BankInfo> getBankInfos();
	
	public abstract List<BankInfo> getBankInfos(DetachedCriteria query) ;
	
	public abstract List<BankInfo> getBankInfosByTypeName(String type, int start, int size);
	
	public abstract int getBankInfosCountByName(String type);

}
